﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200141F RID: 5151
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyUnlockBuildAreaCsReq : IMessage<TrainPartyUnlockBuildAreaCsReq>, IMessage, IEquatable<TrainPartyUnlockBuildAreaCsReq>, IDeepCloneable<TrainPartyUnlockBuildAreaCsReq>, IBufferMessage
	{
		// Token: 0x170040F5 RID: 16629
		// (get) Token: 0x0600E6A4 RID: 59044 RVA: 0x00268FD0 File Offset: 0x002671D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyUnlockBuildAreaCsReq> Parser
		{
			get
			{
				return TrainPartyUnlockBuildAreaCsReq._parser;
			}
		}

		// Token: 0x170040F6 RID: 16630
		// (get) Token: 0x0600E6A5 RID: 59045 RVA: 0x00268FD7 File Offset: 0x002671D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyUnlockBuildAreaCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170040F7 RID: 16631
		// (get) Token: 0x0600E6A6 RID: 59046 RVA: 0x00268FE9 File Offset: 0x002671E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyUnlockBuildAreaCsReq.Descriptor;
			}
		}

		// Token: 0x0600E6A7 RID: 59047 RVA: 0x00268FF0 File Offset: 0x002671F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyUnlockBuildAreaCsReq()
		{
		}

		// Token: 0x0600E6A8 RID: 59048 RVA: 0x00268FF8 File Offset: 0x002671F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyUnlockBuildAreaCsReq(TrainPartyUnlockBuildAreaCsReq other) : this()
		{
			this.areaId_ = other.areaId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E6A9 RID: 59049 RVA: 0x0026901D File Offset: 0x0026721D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyUnlockBuildAreaCsReq Clone()
		{
			return new TrainPartyUnlockBuildAreaCsReq(this);
		}

		// Token: 0x170040F8 RID: 16632
		// (get) Token: 0x0600E6AA RID: 59050 RVA: 0x00269025 File Offset: 0x00267225
		// (set) Token: 0x0600E6AB RID: 59051 RVA: 0x0026902D File Offset: 0x0026722D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x0600E6AC RID: 59052 RVA: 0x00269036 File Offset: 0x00267236
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyUnlockBuildAreaCsReq);
		}

		// Token: 0x0600E6AD RID: 59053 RVA: 0x00269044 File Offset: 0x00267244
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyUnlockBuildAreaCsReq other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E6AE RID: 59054 RVA: 0x00269074 File Offset: 0x00267274
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E6AF RID: 59055 RVA: 0x002690B3 File Offset: 0x002672B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E6B0 RID: 59056 RVA: 0x002690BB File Offset: 0x002672BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E6B1 RID: 59057 RVA: 0x002690C4 File Offset: 0x002672C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E6B2 RID: 59058 RVA: 0x002690F8 File Offset: 0x002672F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E6B3 RID: 59059 RVA: 0x00269136 File Offset: 0x00267336
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyUnlockBuildAreaCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E6B4 RID: 59060 RVA: 0x00269167 File Offset: 0x00267367
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E6B5 RID: 59061 RVA: 0x00269170 File Offset: 0x00267370
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.AreaId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005B48 RID: 23368
		private static readonly MessageParser<TrainPartyUnlockBuildAreaCsReq> _parser = new MessageParser<TrainPartyUnlockBuildAreaCsReq>(() => new TrainPartyUnlockBuildAreaCsReq());

		// Token: 0x04005B49 RID: 23369
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005B4A RID: 23370
		public const int AreaIdFieldNumber = 7;

		// Token: 0x04005B4B RID: 23371
		private uint areaId_;
	}
}
